﻿Public Class ajaxSendCart
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Dim id As Integer = 0
        Dim name As String = ""
        Dim img As String = ""
        Dim price As Double = 0
        Dim objCart As New Cart
        Try
            id = Integer.Parse(Request.QueryString("id"))
            name = Request.QueryString("name")
            img = Request.QueryString("img")
            img = img.Replace("|", "/")
            price = Integer.Parse(Request.QueryString("price"))
            objCart.AddToCart(id, name, img, 1, price)
        Catch ex As Exception

        End Try
        'Response.Write("Do phuong anh " & id & "<BR>" & name & "<BR>" & img & "<BR>" & price)
    End Sub

End Class